<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <button v-show="index >0 " @click="index--">上一页</button>
        <img :src="list[index]" alt="">
        <button v-show="index < list.length - 1" @click="index++">下一页</button>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.16/dist/vue.js"></script>
    <script>
        const app=new Vue({
            el:"#app",
            data:{
                index:0,
                list:[
                    './imgs/10-01.jpg',
                    './imgs/10-02.jpg',
                    './imgs/10-03.jpg',
                ]

            },
            methods:{
                
            }
        })
    </script>

</body>
</html>